import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 订单列表分页查询
export const findOrderListPage = query => {
    return request({
        url: baseRequest_url+'/admin/order/findOrderListPage',
        method: 'get',
		params: query,
    });
};
// 订单详情查询
export const findOrderInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/order/info/'+query,
        method: 'get',
		params: query,
    });
};
// 新增订单
export const addGoodsOrder = data => {
    return request({
        url: baseRequest_url+'/admin/order/saveGoodsOrder',
        method: 'post',
		data: data,
    });
};
// 编辑订单
export const saveGoodsOrder = data => {
    return request({
        url: baseRequest_url+'/admin/order/saveGoodsOrder',
        method: 'put',
		data: data,
    });
};

// 批量删除订单
export const batchEditOrderStatus = data => {
    return request({
        url: baseRequest_url+'/admin/order/batchEditOrderStatus',
        method: 'put',
        data: data
    });
};